﻿<%@ Page Title="Venta Externa" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true" CodeBehind="wFrmVentaExterna.aspx.cs" Inherits="Crosland.Automotriz.Web.Vehiculos.wFrmVentaExterna" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView.Export" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxUploadControl" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxDataView" tagprefix="dx" %>
<%@ Register assembly="CuteWebUI.AjaxUploader" namespace="CuteWebUI" tagprefix="CuteWebUI" %>


<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <style type="text/css">
        .dxeTextBox input
        {
          text-transform:uppercase;
        }
        .style11
        {
            width: 51px;
        }
        .style14
        {
            width: 218px;
        }
        .style15
        {
        }
        .style16
        {
            width: 112px;
        }
        .style18
        {
            width: 83px;
        }
        .style19
        {
            width: 120px;
        }
        .style20
        {
            width: 86px;
        }
        .style21
        {
            width: 154px;
        }
        .style22
        {
            width: 100%;
        }
        .style24
        {
            width: 49px;
        }
        .style25
        {
            color: #FF0000;
        }
        .style26
        {
            width: 129px;
        }
        .style27
        {
            width: 47px;
        }
    </style>


    <script type="text/javascript">
        function ProcessKeyPress(s, evt) {
            var charCode = (evt.htmlEvent.which) ? evt.htmlEvent.which : event.keyCode
            if (charCode > 31 && (charCode < 48 || charCode > 57))
                _aspxPreventEvent(evt.htmlEvent);

        }

        function MostrarAlerta() 
        {
            popupErrores.Show();
        }

        function MostrarMensaje() {
            popupMensaje.Show();
        }

        function swipe(img) {
            var imagen = img;
            var url = imagen.getAttribute('src');
            window.open(url, 'Image', 'width=800,height=650,resizable=0');
        }
    </script>


          <div class="main-header" style="width:100%;">
            <div class="main-titulo" style="text-align: left">Listado de Venta Externa</div>
          </div> 

          <div style="padding: 15px">

        <table width="100%">
            <tr>
                <td width="105">
                    <dx:ASPxButton ID="btnNuevo" runat="server" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Nuevo" 
                        Width="100px" onclick="btnNuevo_Click" AllowFocus="False">
                        <Image Url="~/Images/bt_new_button.gif">
                        </Image>
                    </dx:ASPxButton>
                </td>
                <td width="105">
                    <dx:ASPxButton ID="btnExportar" runat="server" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Exportar" 
                        Width="100px" onclick="btnExportar_Click" AllowFocus="False">
                        <Image Url="~/Images/excel16.gif">
                        </Image>
                    </dx:ASPxButton>
                </td>
                <td width="125">
                <dx:ASPxButton ID="btnVerDetalle" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Text="Ver Detalle" Width="120px" onclick="btnVerDetalle_Click">
                    <Image Url="~/Images/landscape.gif">
                    </Image>
                </dx:ASPxButton>
                </td>
                <td>
                <dx:ASPxButton ID="btnVerReporte" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Text="Ver Reporte" Width="130px" onclick="btnVerReporte_Click" 
                        AutoPostBack="False">
                    <Image Url="~/Images/VerReporte.png" Height="17px">
                    </Image>
                </dx:ASPxButton>
                
                </td>
                <td>
                    <dx:ASPxButton ID="btnSalir" runat="server" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Salir" 
                        Width="100px" onclick="btnSalir_Click" AllowFocus="False">
                        <Image Url="~/Images/logout.png">
                        </Image>
                    </dx:ASPxButton>
                </td>
            </tr>
    </table>
    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" EnableDefaultAppearance="False" 
        GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
        HeaderText="Consulta" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="100%">
        <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
            PaddingTop="10px" />
        <HeaderStyle>
        <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
            PaddingTop="3px" />
        </HeaderStyle>
        <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">
    <table width="100%">
        <tr>
            <td style="width: 35px;height:30px;">
                <asp:Label ID="Label1" runat="server" Text="Año y Mes Inicial :" Height="20px" 
                    Width="110px"></asp:Label>
            </td>
            <td style="width: 80px; height: 30px;">
                <dx:ASPxComboBox ID="cboAnio_Ini" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" Spacing="0" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Width="80px">
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <ButtonStyle Width="13px">
                    </ButtonStyle>
                    <Paddings PaddingLeft="5px" />
                </dx:ASPxComboBox>
            </td>
            <td style="width: 80px; height: 30px;">
                <dx:ASPxComboBox ID="cboMes_Ini" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" SelectedIndex="0" Spacing="0" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Width="100px">
                    <Items>
                        <dx:ListEditItem Selected="True" Text="Enero" Value="1" />
                        <dx:ListEditItem Text="Febrero" Value="2" />
                        <dx:ListEditItem Text="Marzo" Value="3" />
                        <dx:ListEditItem Text="Abril" Value="4" />
                        <dx:ListEditItem Text="Mayo" Value="5" />
                        <dx:ListEditItem Text="Junio" Value="6" />
                        <dx:ListEditItem Text="Julio" Value="7" />
                        <dx:ListEditItem Text="Agosto" Value="8" />
                        <dx:ListEditItem Text="Setiembre" Value="9" />
                        <dx:ListEditItem Text="Octubre" Value="10" />
                        <dx:ListEditItem Text="Noviembre" Value="11" />
                        <dx:ListEditItem Text="Diciembre" Value="12" />
                    </Items>
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <ButtonStyle Width="13px">
                    </ButtonStyle>
                    <Paddings PaddingLeft="5px" />
                </dx:ASPxComboBox>
            </td>
            <td width="105" rowspan="2" align="center" valign="middle">
              
              <dx:ASPxButton ID="btnConsultar" runat="server" AllowFocus="False" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" OnClick="btnConsultar_Click" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Consultar" 
                    Width="100px">
                    <Image Url="~/Images/search.png">
                    </Image>
                </dx:ASPxButton>
              
              </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 35px; height: 30px;">
                <asp:Label ID="Label50" runat="server" Height="20px" Text="Año y Mes Final :" 
                    Width="110px"></asp:Label>
            </td>
            <td style="width: 80px; height: 30px;">
                <dx:ASPxComboBox ID="cboAnio_Fin" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" Spacing="0" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Width="80px">
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <ButtonStyle Width="13px">
                    </ButtonStyle>
                    <Paddings PaddingLeft="5px" />
                </dx:ASPxComboBox>
            </td>
            <td style="width: 80px; height: 30px;">
                <dx:ASPxComboBox ID="cboMes_Fin" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" SelectedIndex="0" Spacing="0" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Width="100px">
                    <Items>
                        <dx:ListEditItem Selected="True" Text="Enero" Value="1" />
                        <dx:ListEditItem Text="Febrero" Value="2" />
                        <dx:ListEditItem Text="Marzo" Value="3" />
                        <dx:ListEditItem Text="Abril" Value="4" />
                        <dx:ListEditItem Text="Mayo" Value="5" />
                        <dx:ListEditItem Text="Junio" Value="6" />
                        <dx:ListEditItem Text="Julio" Value="7" />
                        <dx:ListEditItem Text="Agosto" Value="8" />
                        <dx:ListEditItem Text="Setiembre" Value="9" />
                        <dx:ListEditItem Text="Octubre" Value="10" />
                        <dx:ListEditItem Text="Noviembre" Value="11" />
                        <dx:ListEditItem Text="Diciembre" Value="12" />
                    </Items>
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <ButtonStyle Width="13px">
                    </ButtonStyle>
                    <Paddings PaddingLeft="5px" />
                </dx:ASPxComboBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
            </dx:PanelContent>
</PanelCollection>
    </dx:ASPxRoundPanel>
    <dx:ASPxGridView ID="gv" runat="server" Caption="Listado de Ventas" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" Width="100%" AutoGenerateColumns="False" 
        KeyFieldName="ID_VENTA_EXTERNA">
        <Columns>
            <dx:GridViewDataTextColumn Caption="Modelo" FieldName="DES_MODELO" 
                VisibleIndex="1" Width="140px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="VIN" FieldName="NRO_VIN" VisibleIndex="2" 
                Width="160px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Fecha de &lt;/br&gt;Venta" FieldName="FEC_FACTURA" 
                VisibleIndex="3" Width="80px" Visible="False">
                <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                </PropertiesTextEdit>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Estado" FieldName="DES_LARGA_ESTADO" 
                VisibleIndex="13" Width="190px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Fecha Venta &lt;/br&gt;Público" 
                FieldName="FEC_VTA_PUBLICO" VisibleIndex="5" Width="90px">
                <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                </PropertiesTextEdit>
                <CellStyle BackColor="#D7F2FF">
                </CellStyle>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Cliente" FieldName="DES_CLIENTE_FINAL" 
                VisibleIndex="6" Width="150px">
                <CellStyle BackColor="#D7F2FF">
                </CellStyle>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Doc.Identidad" FieldName="NIF_CLIENTE_FINAL" 
                VisibleIndex="7">
                <CellStyle BackColor="#D7F2FF">
                </CellStyle>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Tipo de &lt;/br&gt;Transformación" 
                FieldName="DES_LARGA_TIPO" VisibleIndex="8">
                <CellStyle BackColor="#D7F2FF">
                </CellStyle>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Precio de &lt;/br&gt;Venta S/." FieldName="IMP_VALOR_VTA" 
                VisibleIndex="9" Width="70px">
                <PropertiesTextEdit DisplayFormatString="{0:N2}">
                </PropertiesTextEdit>
                <CellStyle BackColor="#D7F2FF">
                </CellStyle>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="IGV S/." FieldName="IMP_IGV_VTA" 
                VisibleIndex="10" Width="70px">
                <PropertiesTextEdit DisplayFormatString="{0:N2}">
                </PropertiesTextEdit>
                <CellStyle BackColor="#D7F2FF">
                </CellStyle>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Precio &lt;/br&gt;Total S/." FieldName="IMP_TOTAL_VTA" 
                VisibleIndex="12" Width="70px">
                <PropertiesTextEdit DisplayFormatString="{0:N2}">
                </PropertiesTextEdit>
                <CellStyle BackColor="#D7F2FF">
                </CellStyle>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="ID_VENTA_EXTERNA" 
                FieldName="ID_VENTA_EXTERNA" Visible="False" VisibleIndex="11">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Nota de Crédito" FieldName="NotaCredito" 
                VisibleIndex="4" Visible="False">
            </dx:GridViewDataTextColumn>
        </Columns>
        <SettingsBehavior AllowDragDrop="False" AllowGroup="False" 
            AllowSelectByRowClick="True" AllowSelectSingleRowOnly="True" 
            AllowSort="False" AllowFocusedRow="True" />
        <SettingsPager Mode="ShowAllRecords" NumericButtonCount="20" PageSize="20">
        </SettingsPager>
        <Settings ShowGroupButtons="False" ShowHorizontalScrollBar="True" 
            ShowVerticalScrollBar="True" />
        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
            </LoadingPanelOnStatusBar>
            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
            </LoadingPanel>
        </Images>
        <ImagesFilterControl>
            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
            </LoadingPanel>
        </ImagesFilterControl>
        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
            CssPostfix="Office2010Blue">
            <Header ImageSpacing="5px" SortingImageSpacing="5px">
            </Header>
            <LoadingPanel ImageSpacing="5px">
            </LoadingPanel>
        </Styles>
        <StylesPager>
            <PageNumber ForeColor="#3E4846">
            </PageNumber>
            <Summary ForeColor="#1E395B">
            </Summary>
        </StylesPager>
        <StylesEditors ButtonEditCellSpacing="0">
            <ProgressBar Height="21px">
            </ProgressBar>
        </StylesEditors>
    </dx:ASPxGridView>
          <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server" 
        GridViewID="gv">
    </dx:ASPxGridViewExporter>
    
        </div>


        <dx:ASPxPopupControl ID="pcNuevo" runat="server" AllowDragging="True" 
              ClientIDMode="Static" ClientInstanceName="pcNuevo" CloseAction="CloseButton" 
              CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
              CssPostfix="Office2010Blue" EnableHotTrack="False" HeaderText="Nuevo" 
              Modal="True" PopupHorizontalAlign="WindowCenter" 
              PopupVerticalAlign="WindowCenter" 
              SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        Width="850px" ShowCloseButton="False">
              <HeaderImage Url="~/Images/bt_new_button.gif">
              </HeaderImage>
              <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
              </LoadingPanelImage>
              <HeaderStyle>
              <Paddings PaddingLeft="7px" />
              </HeaderStyle>
              <LoadingPanelStyle ImageSpacing="5px">
              </LoadingPanelStyle>
              <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">



        <table width="100%">
                        <tr>
                            <td>
                                <table width="100%">
                                    <tr>
                                        <td class="style27">
                                            <asp:Label ID="Label12" runat="server" Font-Bold="True" Text="VIN:"></asp:Label>
                                        </td>
                                        <td class="style26">
                                            <dx:ASPxTextBox ID="txtVIN" runat="server" CssClass="dxeTextBox" 
                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                CssPostfix="Office2010Blue" MaxLength="30" NullText="INGRESE EL VIN" 
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                                Width="150px" ToolTip="Ingrese los ultimos 4 digitos.">
                                                <Paddings PaddingLeft="5px" Padding="5px" />
                                            </dx:ASPxTextBox>
                                        </td>
                                        <td class="style24">
                                            <asp:Label ID="Label41" runat="server" Font-Bold="True" Text="Tipo Rueda :" 
                                                Width="85px" Height="20px"></asp:Label>
                                        </td>
                                        <td width="105">

                                            <dx:ASPxComboBox ID="cboTipoRueda" runat="server" 
                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                CssPostfix="Office2010Blue" Spacing="0" 
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="100px">
                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                </LoadingPanelImage>
                                                <LoadingPanelStyle ImageSpacing="5px">
                                                </LoadingPanelStyle>
                                                <ButtonStyle Width="13px">
                                                </ButtonStyle>
                                                <Paddings Padding="5px" />
                                            </dx:ASPxComboBox>

                                           </td>
                                      
                                        <td width="45">
                                            <dx:ASPxButton ID="btnBuscarVehiculo" runat="server" 
                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                CssPostfix="Office2010Blue" HorizontalAlign="Center" 
                                                OnClick="btnBuscarVehiculo_Click" 
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                                Width="40px" CausesValidation="False">
                                                <Image Url="~/Images/search.png">
                                                </Image>
                                            </dx:ASPxButton>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblMensajeVehiculo" runat="server" Font-Bold="True" 
                                                ForeColor="#CC0000"></asp:Label>
                                        </td>
                                    </tr>
                                 
                                    <tr>
                                        <td class="style25" colspan="6">
                                            <strong>Ingrese los últimos 5 dígitos del VIN</strong></td>
                                    </tr>
                                 
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <hr />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <dx:ASPxGridView ID="gvVehiculo" runat="server" AutoGenerateColumns="False" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" Width="100%" KeyFieldName="NRO_VIN" 
                                    ClientIDMode="Static" ClientInstanceName="grid">
                                    <ClientSideEvents FocusedRowChanged="function(s, e) {

}" />
                                    <Columns>
                                        <dx:GridViewDataTextColumn Caption="Marca" FieldName="DES_MARCA" 
                                            ShowInCustomizationForm="True" VisibleIndex="0" Width="70px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Modelo" FieldName="DES_MODELO" 
                                            ShowInCustomizationForm="True" VisibleIndex="3" Width="240px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="N° Motor" FieldName="NRO_MOTOR" 
                                            ShowInCustomizationForm="True" VisibleIndex="2" Width="110px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Año Fabricación" 
                                            FieldName="ANIO_FAB_VEHICULO" ShowInCustomizationForm="True" 
                                            VisibleIndex="6" Width="50px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Color" FieldName="DES_COLOR" 
                                            ShowInCustomizationForm="True" VisibleIndex="4" Width="95px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Asientos" FieldName="ASIENTOS" 
                                            ShowInCustomizationForm="True" VisibleIndex="7" Width="50px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Ruedas" FieldName="RUEDAS" 
                                            ShowInCustomizationForm="True" VisibleIndex="5" Width="50px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Ejes" FieldName="EJES" 
                                            ShowInCustomizationForm="True" VisibleIndex="8" Width="50px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Longitud" FieldName="LONGITUD" 
                                            ShowInCustomizationForm="True" VisibleIndex="9" Width="50px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Ancho" FieldName="ANCHO" 
                                            ShowInCustomizationForm="True" VisibleIndex="10" Width="50px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Altura" FieldName="ALTURA" 
                                            ShowInCustomizationForm="True" VisibleIndex="11" Width="50px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Peso Bruto" FieldName="PESO_BRUTO" 
                                            ShowInCustomizationForm="True" VisibleIndex="12" Width="70px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Peso Neto" FieldName="PESO_NETO" 
                                            ShowInCustomizationForm="True" VisibleIndex="13" Width="70px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="N° Cilindro" FieldName="NRO_CILINDRO" 
                                            ShowInCustomizationForm="True" VisibleIndex="15" Width="50px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="N° VIN" FieldName="NRO_VIN" 
                                            ShowInCustomizationForm="True" VisibleIndex="1" Width="150px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="NRO_FACTURA" FieldName="NRO_FACTURA" 
                                            ShowInCustomizationForm="True" Visible="False" VisibleIndex="18">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="NRO_POSICION" FieldName="NRO_POSICION" 
                                            ShowInCustomizationForm="True" Visible="False" VisibleIndex="17">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="ID_ORG_VTA" FieldName="ID_ORG_VTA" 
                                            ShowInCustomizationForm="True" Visible="False" VisibleIndex="14">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Cliente" FieldName="DES_CLIENTE" 
                                            ShowInCustomizationForm="True" VisibleIndex="16" Width="350px">
                                        </dx:GridViewDataTextColumn>
                                    </Columns>
                                    <SettingsBehavior AllowDragDrop="False" AllowFocusedRow="True" 
                                        AllowGroup="False" AllowSelectByRowClick="True" 
                                        AllowSelectSingleRowOnly="True" AllowSort="False" />
                                    <SettingsPager Mode="ShowAllRecords" Visible="False">
                                    </SettingsPager>
                                    <Settings ShowHorizontalScrollBar="True" ShowVerticalScrollBar="True" />
                                    <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                        <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                        </LoadingPanelOnStatusBar>
                                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                        </LoadingPanel>
                                    </Images>
                                    <ImagesFilterControl>
                                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                        </LoadingPanel>
                                    </ImagesFilterControl>
                                    <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                        CssPostfix="Office2010Blue">
                                        <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                        </Header>
                                        <LoadingPanel ImageSpacing="5px">
                                        </LoadingPanel>
                                    </Styles>
                                    <StylesPager>
                                        <PageNumber ForeColor="#3E4846">
                                        </PageNumber>
                                        <Summary ForeColor="#1E395B">
                                        </Summary>
                                    </StylesPager>
                                    <StylesEditors ButtonEditCellSpacing="0">
                                        <ProgressBar Height="21px">
                                        </ProgressBar>
                                    </StylesEditors>
                                </dx:ASPxGridView>
                            </td>
                        </tr>
                    </table>




                <table width="100%">
                    <tr>
                        <td colspan="2">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td style="width: 166px">
                            <asp:Label ID="Label28" runat="server" Font-Bold="True" 
                                Text="Fecha de Comprobante:"></asp:Label>
                        </td>
                        <td>
                            <table cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td width="135">
                                        <dx:ASPxDateEdit ID="deFechaVentaPublico" runat="server" 
                                            AllowMouseWheel="False" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" Spacing="0" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="130px">
                                            <CalendarProperties>
                                                <HeaderStyle Spacing="1px" />
                                            </CalendarProperties>
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxDateEdit>
                                    </td>
                                    <td align="left">
                                        <asp:Label ID="Label35" runat="server" Font-Bold="True" ForeColor="#CC0000" 
                                            Text="*"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td rowspan="9" align="center" valign="top">
                            <asp:Panel ID="panelImagenes" runat="server" BackColor="#E4EFFA">
                                <table style="width: 300px;">
                                    <tr>
                                        <td align="left" style="width: 100%;">
                                            <dx:ASPxLabel ID="lblSelectMultipleFiles" runat="server" Font-Bold="True" 
                                                Text="Seleccione múltiples archivos:">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" style="width: 100%;">
                                            <CuteWebUI:Uploader ID="Uploader1" runat="server" CancelAllMsg="Cancelar Todo" 
                                                CancelText="Cancelar" CancelUploadMsg="Cancelar" InsertText="Cargar archivos" 
                                                MultipleFilesUpload="True" OnFileUploaded="Uploader1_FileUploaded" 
                                                UploadAddonButtonImage="" UploadAddonWarningImage="" UploadingMsg="Cargando..." 
                                                UploadProcessingMsg="Cargando...">
                                                <ValidateOption AllowedFileExtensions="jpeg,jpg,gif,png" />
                                            </CuteWebUI:Uploader>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="note">
                                            <dx:ASPxLabel ID="lblAllowebMimeType" runat="server" Font-Size="8pt" 
                                                Text="Tipos de imágenes permitidas: jpeg, jpg, gif, png">
                                            </dx:ASPxLabel>
                                            <br />
                                            <dx:ASPxLabel ID="lblMaxFileSize" runat="server" Font-Size="8pt" 
                                                Text="Tamaño máximo del archivo: 1Mb">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left">
                                            <asp:Label ID="lblImagenes" runat="server" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                                &nbsp;</asp:Panel>

                        </td>
                    </tr>
                    <tr>
                        <td style="width: 166px">
                            <asp:Label ID="Label45" runat="server" Font-Bold="True" 
                                Text="Tipo de Comprobante:"></asp:Label>
                        </td>
                        <td>
                            <asp:RadioButtonList ID="rblTipoComprobante" runat="server" 
                                RepeatDirection="Horizontal">
                                <asp:ListItem Selected="True" Value="119">Factura</asp:ListItem>
                                <asp:ListItem Value="120">Boleta</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td style="width: 166px">
                            <asp:Label ID="Label46" runat="server" Font-Bold="True" 
                                Text="Serie de Comprobante:"></asp:Label>
                        </td>
                        <td>
                            <table cellpadding="0" cellspacing="0" class="style22">
                                <tr>
                                    <td width="65">
                                        <dx:ASPxTextBox ID="txtSerieComprobante" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                            Width="60px" Text="000">
                                            <MaskSettings IncludeLiterals="None" Mask="000" ErrorText="Ingrese 3 dígitos"/>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td align="left">
                                        <asp:Label ID="Label48" runat="server" Font-Bold="True" ForeColor="#CC0000" 
                                            Text="*"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td style="width: 166px">
                            <asp:Label ID="Label47" runat="server" Font-Bold="True" 
                                Text="Número de Comprobante:"></asp:Label>
                        </td>
                        <td>
                            <table cellpadding="0" cellspacing="0" class="style22">
                                <tr>
                                    <td width="105">
                                        <dx:ASPxTextBox ID="txtNumeroComprobante" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                            Width="100px" Text="0000000">
                                            <MaskSettings IncludeLiterals="None" Mask="0000000" 
                                                ErrorText="Ingrese 7 dígitos"/>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td align="left">
                                        <asp:Label ID="Label49" runat="server" Font-Bold="True" ForeColor="#CC0000" 
                                            Text="*"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td style="width: 166px">
                            <asp:Label ID="Label29" runat="server" Font-Bold="True" 
                                Text="Nombre del Cliente:"></asp:Label>
                        </td>
                        <td>
                            <table cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td width="305">
                                        <dx:ASPxTextBox ID="txtNombreCliente" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" MaxLength="100" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="300px">
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td>
                                        <asp:Label ID="Label36" runat="server" Font-Bold="True" ForeColor="#CC0000" 
                                            Text="*"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td style="width: 166px">
                            <asp:Label ID="Label30" runat="server" Font-Bold="True" Text="DNI/RUC:"></asp:Label>
                        </td>
                        <td>
                            <table cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td width="135">
                                        <dx:ASPxTextBox ID="txtRuc" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" MaxLength="11" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="130px">
                                            <ClientSideEvents KeyPress="function(s, e) {
	ProcessKeyPress(s, e);
}" />
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td>
                                        <asp:Label ID="Label37" runat="server" Font-Bold="True" ForeColor="#CC0000" 
                                            Text="*"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td style="width: 166px">
                            <asp:Label ID="Label31" runat="server" Font-Bold="True" 
                                Text="Tipo de Transformación:"></asp:Label>
                        </td>
                        <td>
                            <table cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td width="135">
                                        <dx:ASPxComboBox ID="cboTipoTransformacion" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" Spacing="0" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="130px">
                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <LoadingPanelStyle ImageSpacing="5px">
                                            </LoadingPanelStyle>
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxComboBox>
                                    </td>
                                    <td>
                                        <asp:Label ID="Label38" runat="server" Font-Bold="True" ForeColor="#CC0000" 
                                            Text="*"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td style="width: 166px">
                            <asp:Label ID="Label43" runat="server" Font-Bold="True" Text="Moneda:"></asp:Label>
                        </td>
                        <td>
                            <table cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td width="135">
                                        <dx:ASPxComboBox ID="cboMoneda" runat="server" AutoPostBack="True" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" 
                                            OnSelectedIndexChanged="cboMoneda_SelectedIndexChanged" Spacing="0" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                            Width="130px" Enabled="False">
                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <LoadingPanelStyle ImageSpacing="5px">
                                            </LoadingPanelStyle>
                                            <ButtonStyle Width="13px">
                                            </ButtonStyle>
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxComboBox>
                                    </td>
                                    <td>
                                        <asp:Label ID="Label44" runat="server" Font-Bold="True" ForeColor="#CC0000" 
                                            Text="*"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td style="width: 166px">
                            <asp:Label ID="Label34" runat="server" Font-Bold="True" 
                                Text="Precio Total (US$):"></asp:Label>
                        </td>
                        <td>

                                    <table cellpadding="0" cellspacing="0" width="100%">
                                        <tr>
                                            <td width="135">
                                                <dx:ASPxSpinEdit ID="sePrecioTotal" runat="server" AllowMouseWheel="False" 
                                                    AllowNull="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                    CssPostfix="Office2010Blue" DecimalPlaces="2" Height="21px" Number="0" 
                                                    Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                                    Width="130px">
                                                    <SpinButtons HorizontalSpacing="0">
                                                    </SpinButtons>
                                                    <ClientSideEvents NumberChanged="function(s, e) {

}" />
                                                    <Paddings PaddingLeft="5px" />
                                                </dx:ASPxSpinEdit>
                                            </td>
                                            <td>
                                                <asp:Label ID="Label39" runat="server" Font-Bold="True" ForeColor="#CC0000" 
                                                    Text="*"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>

                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <table width="100%">
                                <tr>
                                    <td class="style14">
                                        <asp:Label ID="Label40" runat="server" Font-Bold="True" Font-Size="7.5pt" 
                                            ForeColor="#CC0000" Text="(*) Estos campos son obligatorios."></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td align="right">
                            <table cellpadding="0" cellspacing="0">
                                <tr>
                                    <td align="right">
                                        <dx:ASPxButton ID="btnGrabar" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" OnClick="btnGrabar_Click" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Grabar" 
                                            Width="100px">
                                            <ClientSideEvents Click="function(s, e) {
	e.processOnServer = confirm('¿Desea grabar la venta?');
}" />
                                            <Image Url="~/Images/save_16.gif">
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                    <td align="right" width="105">
                                        <dx:ASPxButton ID="btnSalirPopup" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Salir" 
                                            Width="100px" OnClick="btnSalirPopup_Click" CausesValidation="False">
                                            <ClientSideEvents Click="function(s, e) {

}" />
                                            <Image Url="~/Images/logout.png">
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>


                  </dx:PopupControlContentControl>
</ContentCollection>
          </dx:ASPxPopupControl>
          <dx:ASPxPopupControl ID="popupErrores" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupErrores" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
              Width="300px" EnableHotTrack="False">
                
                    <HeaderImage Url="~/Images/icon_message.png">
                    </HeaderImage>
                
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                    <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                
                 <ContentCollection>
<dx:popupcontrolcontentcontrol ID="PopupControlContentControl2" runat="server" 
                         SupportsDisabledAttribute="True">

    <br />
      <dx:aspxpanel ID="ASPxPanel3" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:panelcontent ID="PanelContent2" runat="server">
                        <table width="100%">
                        <tr>
                        <td align="center" valign="middle">
                        
                        
                        
                            <asp:Label ID="lblMensaje" runat="server"></asp:Label>
                            <br /> &nbsp;</td>
                        
                        </tr>
                        <tr>
                        <td align="center">
                        
                       
                            <dx:aspxbutton ID="ASPxButton6" runat="server" AutoPostBack="False" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar" 
                                Width="10px" HorizontalAlign="Center">
                                <ClientSideEvents Click="function(s, e) {
	popupErrores.Hide();
}" />
                                <Image Url="~/Images/ok.png">
                                </Image>
                            </dx:aspxbutton>
                        
                        </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:panelcontent>
    </PanelCollection>
   </dx:aspxpanel>
   </dx:popupcontrolcontentcontrol>
</ContentCollection>
                </dx:ASPxPopupControl>


                        <br />
          <dx:ASPxPopupControl ID="popupMensaje" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupMensaje" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
              Width="300px" EnableHotTrack="False">
                
                    <HeaderImage Url="~/Images/icon_message.png">
                    </HeaderImage>
                
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                    <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                
                 <ContentCollection>
<dx:popupcontrolcontentcontrol ID="PopupControlContentControl3" runat="server" 
                         SupportsDisabledAttribute="True">

    <br />
      <dx:aspxpanel ID="ASPxPanel4" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:panelcontent ID="PanelContent3" runat="server">
                        <table width="100%">
                        <tr>
                        <td align="center" valign="middle">
                        
                        
                        
                            <asp:Label ID="lblMensajeExito" runat="server"></asp:Label>
                            <br /> &nbsp;</td>
                        
                        </tr>
                        <tr>
                        <td align="center">
                        
                       
                            <dx:aspxbutton ID="ASPxButton7" runat="server" AutoPostBack="False" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	popupMensaje.Hide();
	pcNuevo.Hide();
}" />
                                <Image Url="~/Images/ok.png">
                                </Image>
                            </dx:aspxbutton>
                        
                        </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:panelcontent>
    </PanelCollection>
   </dx:aspxpanel>
   </dx:popupcontrolcontentcontrol>
</ContentCollection>
                </dx:ASPxPopupControl>


                        <br />

          <dx:ASPxPopupControl ID="pcDatosVehiculo" runat="server" AllowDragging="True" 
              ClientIDMode="Static" ClientInstanceName="pcDatosVehiculo" CloseAction="CloseButton" 
              CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
              CssPostfix="Office2010Blue" EnableHotTrack="False" HeaderText="Detalle del Vehículo" 
              Modal="True" PopupHorizontalAlign="WindowCenter" 
              PopupVerticalAlign="WindowCenter" 
              SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        Width="750px">
              <HeaderImage Url="~/Images/landscape.gif">
              </HeaderImage>
              <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
              </LoadingPanelImage>
              <HeaderStyle>
              <Paddings PaddingLeft="7px" />
              </HeaderStyle>
              <LoadingPanelStyle ImageSpacing="5px">
              </LoadingPanelStyle>
              <ContentCollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">


    <asp:Panel ID="Panel1" runat="server" BackColor="#E4EFFA" 
        Width="100%">
        <table bgcolor="#E4EFFA" width="100%">
            <tr>
                <td class="main-separator" style="width: 3px">
                    &nbsp;</td>
                <td class="style15">
                    <asp:Label ID="Label13" runat="server" Font-Bold="True" Text="Marca:"></asp:Label>
                </td>
                <td class="style18">
                    <asp:Label ID="lblMarca" runat="server"></asp:Label>
                </td>
                <td class="style16">
                    <asp:Label ID="Label14" runat="server" Font-Bold="True" Text="Modelo:"></asp:Label>
                </td>
                <td colspan="3">
                    <asp:Label ID="lblModelo" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="main-separator" style="width: 3px">
                    &nbsp;</td>
                <td class="style15">
                    <asp:Label ID="Label19" runat="server" Font-Bold="True" Text="N° Asientos:"></asp:Label>
                </td>
                <td class="style18">
                    <asp:Label ID="lblAsientos" runat="server"></asp:Label>
                </td>
                <td class="style16">
                    <asp:Label ID="Label18" runat="server" Font-Bold="True" Text="N° Ruedas:"></asp:Label>
                </td>
                <td class="style19">
                    <asp:Label ID="lblNroRuedas" runat="server"></asp:Label>
                </td>
                <td class="style20">
                    <asp:Label ID="Label17" runat="server" Font-Bold="True" Text="N° Motor:"></asp:Label>
                </td>
                <td class="style21">
                    <asp:Label ID="lblNroMotor" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="main-separator" style="width: 3px">
                    &nbsp;</td>
                <td class="style15">
                    <asp:Label ID="Label16" runat="server" Font-Bold="True" Text="Color:"></asp:Label>
                </td>
                <td class="style18">
                    <asp:Label ID="lblColor" runat="server"></asp:Label>
                </td>
                <td class="style16">
                    <asp:Label ID="Label15" runat="server" Font-Bold="True" Font-Italic="False" 
                        Text="Año Fab.:"></asp:Label>
                </td>
                <td class="style19">
                    <asp:Label ID="lblAnioFabricacion" runat="server"></asp:Label>
                </td>
                <td class="style20">
                    <asp:Label ID="Label24" runat="server" Font-Bold="True" Text="Combustible:"></asp:Label>
                </td>
                <td class="style21">
                    <asp:Label ID="lblCombustible" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="main-separator" style="width: 3px">
                    &nbsp;</td>
                <td class="style15">
                    <asp:Label ID="Label20" runat="server" Font-Bold="True" Text="Longitud(mm.):"></asp:Label>
                </td>
                <td class="style18">
                    <asp:Label ID="lblLongitud" runat="server"></asp:Label>
                </td>
                <td class="style16">
                    <asp:Label ID="Label21" runat="server" Font-Bold="True" Text="Ancho(mm.):"></asp:Label>
                </td>
                <td class="style19">
                    <asp:Label ID="lblAncho" runat="server"></asp:Label>
                </td>
                <td class="style20">
                    <asp:Label ID="Label22" runat="server" Font-Bold="True" Text="Altura(mm.):"></asp:Label>
                </td>
                <td class="style21">
                    <asp:Label ID="lblAltura" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="main-separator" style="width: 3px">
                    &nbsp;</td>
                <td class="style15">
                    <asp:Label ID="Label25" runat="server" Font-Bold="True" Text="Peso Bruto(kg.):"></asp:Label>
                </td>
                <td class="style18">
                    <asp:Label ID="lblPesoBruto" runat="server"></asp:Label>
                </td>
                <td class="style16">
                    <asp:Label ID="Label26" runat="server" Font-Bold="True" Text="Peso Neto(kg.):"></asp:Label>
                </td>
                <td class="style19">
                    <asp:Label ID="lblPesoNeto" runat="server"></asp:Label>
                </td>
                <td class="style20">
                    <asp:Label ID="Label27" runat="server" Font-Bold="True" Text="N° Cilindros:"></asp:Label>
                </td>
                <td class="style21">
                    <asp:Label ID="lblNroCilindros" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="main-separator" style="width: 3px">
                    &nbsp;</td>
                <td class="style15">
                    &nbsp;</td>
                <td class="style18">
                    &nbsp;</td>
                <td class="style16">
                    &nbsp;</td>
                <td class="style19">
                    &nbsp;</td>
                <td class="style20">
                    &nbsp;</td>
                <td class="style21">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="main-separator" style="width: 3px">
                    &nbsp;</td>
                <td class="style15" colspan="6">
                    <dx:ASPxDataView ID="dvFotos" runat="server" AllowPaging="False" 
                        ColumnCount="4" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" PagerPanelSpacing="0px" RowPerPage="1" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                        <ItemTemplate>
                            <asp:ImageButton ID="ibFoto" runat="server" Height="100px"  ClientIDMode="Static"
                                ImageUrl='<%# Bind("DES_RUTA_ARCHIVO") %>' Width="100px" OnClientClick="swipe(this)" />
                        </ItemTemplate>
                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                        </LoadingPanelImage>
                        <LoadingPanelStyle ImageSpacing="5px">
                        </LoadingPanelStyle>
                        <DisabledStyle ForeColor="#B2B7BD">
                        </DisabledStyle>
                    </dx:ASPxDataView>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <ajax:RoundedCornersExtender ID="rce0" runat="server"
    TargetControlID="Panel1"
    Radius="15"
    Corners="All" Color="228, 239, 250" />


    <table width="100%">
        <tr>
            <td align="right">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td align="right" width="105">
                            <dx:ASPxButton ID="btnSalirPopup0" runat="server" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Salir" 
                                Width="100px">
                                <ClientSideEvents Click="function(s, e) {
	pcDatosVehiculo.Hide();
}" />
                                <Image Url="~/Images/logout.png">
                                </Image>
                            </dx:ASPxButton>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
                  </dx:PopupControlContentControl>
</ContentCollection>
          </dx:ASPxPopupControl>


                        <br />


          </asp:Content>
